package edu.cicese.alz.reports;

import javax.swing.BorderFactory;
import javax.swing.JButton;
import java.awt.Color;
import java.awt.Dimension;

/**
 * Created by: Eduardo Quintana Contreras
 * Date: 28/06/12
 * Time: 12:46 PM
 */
public class ButtonPreview extends JButton {
	protected Color color, borderColor;

	public ButtonPreview(Color color, Color borderColor, int width, int height) {
		super();
		this.color = color;
		this.borderColor = borderColor;
		setPreferredSize(new Dimension(width, height));
		setMaximumSize(getPreferredSize());
		setBorder(BorderFactory.createEmptyBorder());
	}

	public void setColor(Color color) {
		this.color = color;
	}

	public void setBorderColor(Color borderColor) {
		this.borderColor = borderColor;
	}
}
